home *** CD-ROM | disk | FTP | other *** search
- /*
- * Returns the user-visible description of this $$COM_Class_Name$$Method.
- * Required.
- */
-
- [
- propget
- ]
- HRESULT Description(
- [out, retval] BSTR* prop
- );
-
- /*
- * Returns the persistent class id for this $$COM_Class_Name$$Method's property section.
- * Required.
- */
-
- [
- propget
- ]
- HRESULT ClassID(
- [out, retval] BSTR* prop
- );
-
-
- /*
- * Retrieve types and names for regen properties.
- * Required even Custom $$COM_Class_Name$$ Object hasn't any own properties.
- */
- HRESULT GetPropertyInfo(
- [in, out] VARIANT* Names
- ,[in, out] VARIANT* Types
- ,[in, out] VARIANT* IDs
- ,[in, out] VARIANT* Defaults
- ,[out, retval] long* prop
- );
-
- /*
- * Get the number of property pages supporting this $$COM_Class_Name$$Method.
- * Optional - can be omitted if Custom $$COM_Class_Name$$ Object doesn't provide any Property Pages.
- */
-
- HRESULT GetPageInfo(
- [in] IDispatch* AGraphic
- ,[out] long* StockPages
- ,[in, out] VARIANT* Names
- ,[out, retval] long* prop
- );
-
- /*
- * Function called during TurboCAD start up.
- * Optional - can be omitted if Custom $$COM_Class_Name$$ Object doesn't need any initialisation actions.
- */
- HRESULT Initialize(
- [in] IDispatch* This$$COM_Class_Name$$Method
- ,[out, retval] IMSI_BOOL* prop
- );
-
- /*
- * Shows $$COM_Class_Name$$ Method property pages.
- * Optional - can be omitted if Custom $$COM_Class_Name$$ Object doesn't provide any Property Pages.
- */
-
- HRESULT PropertyPages(
- [in] IDispatch* This$$COM_Class_Name$$Method
- ,[in, out] VARIANT* PageNumber
- ,[out, retval] IMSI_BOOL* prop
- );
-
- /*
- * Exchange and validate Property Pages Data data.
- * Optional - can be omitted if Custom $$COM_Class_Name$$ Object doesn't provide any Property Pages.
- */
-
- HRESULT PageControls(
- [in] IDispatch* This$$COM_Class_Name$$Method
- ,[in] IDispatch* AGraphic
- ,[in] long PageNumber
- ,[in] IMSI_BOOL SaveProperties
- ,[out, retval] IMSI_BOOL* prop
- );
-
- /*
- * Unload/destroy Property Pages form/dialog.
- * Optional - can be omitted if Custom $$COM_Class_Name$$ Object doesn't provide any Property Pages.
- */
-
- HRESULT PageDone(
- [in] IDispatch* This$$COM_Class_Name$$Method
- ,[in, out] VARIANT* PageNumber
- );
-
- /*
- * Function called whenever a new Custom $$COM_Class_Name$$ Object graphic was created.
- * Optional - can be omitted if Custom $$COM_Class_Name$$ Object don't need to do something with newly created graphic.
- */
-
- HRESULT OnNewGraphic(
- [in] IDispatch* CopyGraphic
- ,[in] IMSI_BOOL Copy
- ,[out, retval] IMSI_BOOL* prop // False if failure
- );
-
- /*
- * Function called whenever a copy of a Custom $$COM_Class_Name$$ Object graphic is being made.
- * Optional - can be omitted if Custom $$COM_Class_Name$$ Object don't need to do something with copy of the graphic.
- */
-
- HRESULT OnCopyGraphic(
- [in] IDispatch* CopyGraphic
- ,[in] IDispatch* SourceGraphic
- ,[in] VARIANT* pvarMatrix
- ,[out, retval] IMSI_BOOL* prop // not used now
- );
-
- /*
- * Notification function called after graphic property is saved.
- * Required if Custom $$COM_Class_Name$$ Object has own properties.
- */
-
- HRESULT OnPropertyChanged(
- [in] IDispatch* AGraphic
- ,[in] long PropID
- ,[in, out] VARIANT* ValueOld
- ,[in, out] VARIANT* ValueNew
- );
-
- /*
- * Notification function called before graphic property is saved.
- * Optional - can be omitted if Custom $$COM_Class_Name$$ Object don't need to perform additional validateion
- * actions for propertty.
- */
-
- HRESULT OnPropertyChanging(
- [in] IDispatch* AGraphic
- ,[in] long PropID
- ,[in, out] VARIANT* ValueOld
- ,[in, out] VARIANT* ValueNew
- ,[out, retval] IMSI_BOOL* prop // True if property could be changed.
- );
-
- /*
- * Notification function called before graphic property is retrieved.
- * Optional.
- */
-
- HRESULT OnPropertyGet(
- [in] IDispatch* AGraphic
- ,[in] long PropID
- );
-
- /*
- * Function called to draw graphic.
- * Optional - can be omitted if Custom $$COM_Class_Name$$ Object doesn't draw any non-TurboCAD objects.
- */
-
- HRESULT Draw(
- [in] IDispatch* AGraphic
- ,[in] IDispatch* AView
- ,[in] VARIANT* AMatrix
- ,[out, retval] IMSI_BOOL* prop // True if we did the redraw (no further processing necessary, no children will be drawn
- );
-
- /*
- * Called when we need to update our object.
- * Optional.
- */
-
- HRESULT Regen(
- [in] IDispatch* AGraphic
- );
-